package com.design.cjm.behavioral.interpreter.example1;

/**
 * @Author: Jie Ming Chen
 * @Date: 2018/9/26
 * @Version 1.0
 */
public class TeriminalExpression extends Expression{

    @Override
    public void excute(String key, double value) {

        String scale = "";

        switch (value + "") {

            case "1":
                scale = "低音";
                break;
            case "2":
                scale = "中音";
                break;

            default:
        }
    }
}
